/********************************************************************************
 * Project Name		[JavaEE_Components]
 * File Name     	[User.java]
 * Creation Date 	[2015-01-01]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ********************************************************************************/
package javamail.cases.bean;

/**
 * @author 不落的太阳(Sean Yang aka ShortPeace)
 * @version 1.0
 * @since jdk 1.8
 * 
 */
public class User {

	private int id;
	private String username;
	private String password;
	private String email;
	private boolean isActivated; // 用户是否激活
	private String randomCode; // 随机码, 用于生成链接

	public User() {
		super();
	}

	public User(String username, String password, String email, boolean isActivated, String randomCode) {
		super();
		this.username = username;
		this.password = password;
		this.email = email;
		this.isActivated = isActivated;
		this.randomCode = randomCode;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public boolean isActivated() {
		return isActivated;
	}

	public void setActivated(boolean isActivated) {
		this.isActivated = isActivated;
	}

	public String getRandomCode() {
		return randomCode;
	}

	public void setRandomCode(String randomCode) {
		this.randomCode = randomCode;
	}
}
